package com.yidu.manage.service;

import com.yidu.manage.domain.SysRole;

import java.util.List;

public interface ISysRoleService
{
    List<SysRole> findSysRoleList(SysRole sysRole);

    default List<SysRole> findSysRoleListById(Long id)
    {
        SysRole sysRole = new SysRole();
        sysRole.setId(id);
        return findSysRoleList(sysRole);
    }

    default List<SysRole> selectRoleAll()
    {
        return findSysRoleList(new SysRole());
    }
}
